#include<stdio.h>
int main()
{
	int m,n,a,b;
	scanf("%d%d",&m,&n);
	a=1;
	b=1;
	while(a<=n)
	{
	b=b*m;
	a++;
	}
	printf("%d",b);
	return 0;
}
